%\documentclass[cropmarks, frame, english, 11pt]{idaphdthesis}
%\documentclass[cropmarks, cross, english, 11pt]{idaphdthesis} \crop[noinfo]
\documentclass[english, 11pt]{idaphdthesis}



\usepackage[english]{babel}
\usepackage[latin1]{inputenc}

\usepackage{graphicx}

\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{times}
%\usepackage{mathptm}

%\usepackage{mathrsfs}

\usepackage{pifont}
%\renewcommand\labelitemi{\footnotesize\ding{117}}
\renewcommand\labelitemi{\tiny\ding{110}}
%\usepackage{mathabx}
%\renewcommand\labelitemi{$\sqbullet$}


\DeclareMathAlphabet{\mathpzc}{OT1}{pzc}{m}{it}
 
\usepackage{paralist}
\setlength{\plitemsep}{2pt}
\setlength{\pltopsep}{0pt}

\usepackage[small,bf]{caption}
\setlength{\captionmargin}{0.1\textwidth}

\usepackage{lettrine}

\usepackage[all,cmtip]{xy}
\usepackage{rotating}
\usepackage{rotfloat}

%%%%%%%%%%%%% CHAPTER, SECTION LAYOUT %%%%%%%%%%%%
%\usepackage[Lenny]{fncychap}
\usepackage[helvetica,nogrey]{quotchap}
%\renewcommand\chapterheadstartvskip{\vspace*{-5\baselineskip}}
\usepackage{helvet}
\renewcommand\sectfont{\sffamily\bfseries}

%\usepackage[sf,bf,tiny,center]{titlesec}

\makeatletter
\renewcommand\section{\@startsection{section}{1}{0pt}%
{-1.5\baselineskip}{0.5\baselineskip}%
{\Large\sffamily\bfseries}}

\renewcommand\subsection{\@startsection{subsection}{1}{0pt}%
{-\baselineskip}{0.5\baselineskip}%
{\normalsize\sffamily\bfseries}}

\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%% FOR BLANK PAGES %%%%%%%%%%%
\makeatletter
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
  \hbox{}
  \vspace*{\fill}
  %\begin{center}
  %  This page intentionally contains only this sentence.
  %\end{center}
  \vspace{\fill}
  \thispagestyle{empty}
%  \thispagestyle{plain}
  \newpage
  \if@twocolumn\hbox{}\newpage\fi\fi\fi}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%\geometry{paperwidth=165mm,paperheight=240mm,height=195mm,width=110mm}

% \raggedbottom
% 
% \widowpenalty=10000
% \clubpenalty=10000


%\geometry{paperwidth=165mm,paperheight=242mm}
% S5 is 165x240mm

%\setlength{\textheight}{178.44mm}
%\setlength{\textwidth}{103.85mm}
%\setlength{\textwidth}{104.50mm}
%\setlength{\textwidth}{122mm}

%\setlength{\evensidemargin}{3.20mm}

%\setlength{\evensidemargin}{5.88mm}
%\setlength{\evensidemargin}{-12.25mm}

%\setlength{\oddsidemargin}{3.2mm}

%\setlength{\topmargin}{0mm} %3.11mm plus 1mm minus 1mm}
%\setlength{\headheight}{0in}

%\setlength{\headsep}{6.11mm} %plus .2mm minus .2mm}


%\renewcommand{\textfraction}{0.2}
%\renewcommand{\topfraction}{0.75}
%\renewcommand{\bottomfraction}{0.65}
%\renewcommand{\textfraction}{0.1}
%\renewcommand{\topfraction}{0.95}
%\renewcommand{\bottomfraction}{0.95}


%%%%%%%%%%
% LAYOUT %
%%%%%%%%%%

\addtolength{\topmargin}{1cm}
\addtolength{\textheight}{-1cm}

\addtolength{\textwidth}{-0.4cm}
\addtolength{\oddsidemargin}{0.4cm}
%\addtolength{\evensidemargin}{-0.4cm}

%%%%%%%%%%



\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}{}}

\fancyhf{} % delete current settings
% \fancyhead[LE,RO]{\bfseries\thepage}
% \fancyhead[LO]{\bfseries\rightmark}
% \fancyhead[RE]{\bfseries\leftmark}
\fancyhead[LE,RO]{\thepage}
\fancyhead[LO]{\rightmark}
\fancyhead[RE]{\leftmark}
\renewcommand{\headrulewidth}{0pt}
%\renewcommand{\footrulewidth}{0pt}
%\addtolength{\headheight}{1pt}
%\addtolength{\headwidth}{-10pt}
%\fancypagestyle{plain}{%
%  \fancyhead{}%
%  \renewcommand{\headrulewidth}{0pt}%
%}


\newcommand{\etal}{et~al.}
\newcommand{\Figref}[1]{Figure~\ref{#1}}
\newcommand{\Equationref}[1]{Equation~\eqref{#1}}
\newcommand{\Sectionref}[1]{Section~\ref{#1}}
\newcommand{\Tableref}[1]{Table~\ref{#1}}



\input{notation}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
% Macro for 'List of Symbols', 'List of Notations' etc...
\def\addsymbol #1: #2#3{$#1$ \> #2, page \pageref{#3}\\}
%\def\addsymbol #1: #2#3{$#1$ \> \parbox{5in}{#2 \dotfill \pageref{#3}}\\}
\def\newnot#1{\label{#1}}

\def\gensym #1: #2{$#1$ \> #2\\}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\hyphenation{}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\titleenglish{Optimization of Embedded Control Systems}
%\titleenglish{Quality-Driven Synthesis of Embedded Control Systems}
%\titleenglish{Control-Quality Optimization of Cyber-Physical Systems}
%\titleenglish{Control-Quality Driven Synthesis and Optimization of Embedded Systems}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\titleenglish{Quality-Driven Synthesis and Optimization of Embedded Control Systems}

\author{Soheil Samii}
\publicationyear{2011}
\isbn{ISBN}
\thesisnumber{1386}
\thesisyearnumber{2011}



%\renewcommand{\chaptermark}[1]{\markboth{\uppercase{Ch. \thechapter. #1}}{}}
%\makeatletter
%\renewcommand\@dotsep{2.0}
%\makeatother


% CHANGE BARS (use \nochangebars to disable change bars)
\usepackage[outerbars]{changebar}
\addtolength{\changebarwidth}{1pt}
%\setlength{\changebarsep}{5mm}
\setcounter{changebargrey}{0}

\begin{document}

\nochangebars

%\frontmatter
\makeintropages
%\maketitle



%\mainmatter
%\sloppy
%\tableofcontents
%\fussy
%\listoffigures
%\listoftables

\cleardoublepage
\input{introduction}

\cleardoublepage
\input{background}

\cleardoublepage
\input{preliminaries}

\cleardoublepage
\input{distributed}

\cleardoublepage
\input{multimode}

\cleardoublepage
\input{faulttolerance}

\cleardoublepage
\input{selftriggered}

\cleardoublepage
\input{conclusions}

\cleardoublepage
\input{futurework}

\cleardoublepage
%\backmatter
\bibliographystyle{alpha}
%\bibliographystyle{plain}
\addcontentsline{toc}{chapter}{Bibliography}
\bibliography{biblio}

\appendix
\cleardoublepage
\input{listofnotation}

\cleardoublepage

\end{document}
